import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/map',
    name: 'Maps',
    component: () => import('../views/map.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login.vue')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue')
  },
  {
    path: '/setting',
    name: 'Setting',
    component: () => import('../views/setting.vue')
  },{
    path: '/elevator',
    name: 'elevator',
    component: () => import('../views/elevator.vue')
  },{
    path: '/entry',
    name: 'entry',
    component: () => import('../views/entry.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
